#!/bin/bash

# 停止应用程序
if [ -f "pid.txt" ]; then
    PID=$(cat pid.txt)
    echo "正在停止Update Service，进程ID: $PID..."
    kill -9 $PID
    rm -f pid.txt
    echo "Update Service已停止"
else
    echo "未找到运行中的Update Service进程ID文件"
fi